import GameManager from "../Managers/GameManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class Key extends cc.Component {

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {

    }

    // update (dt) {}
    
    onBeginContact(contact:cc.PhysicsContact, selfCollider:cc.PhysicsCollider, otherCollider:cc.PhysicsCollider) {
        GameManager.Instance.Unlock(this.node);
    }
}
